package jp.co.sn.mml.pojo.tsfaxttzr;


public class TsfaxttzrId implements java.io.Serializable { 

	//材料コード
	private String zrCd;
	//菌コード
	private String kinCd;

	/** default constructor */
	public TsfaxttzrId(){

	}

	/** full constructor */
	public TsfaxttzrId(String zrCd,String kinCd){
		this.zrCd = zrCd;
		this.kinCd = kinCd;
	}

	//Property accessors
	public String getZrCd(){
		return this.zrCd;
	}

	public void setZrCd(String zrCd){
		this.zrCd=zrCd;
	}

	public String getKinCd(){
		return this.kinCd;
	}

	public void setKinCd(String kinCd){
		this.kinCd=kinCd;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TsfaxttzrId))
			return false;

		TsfaxttzrId castOther = (TsfaxttzrId) other;

		return ((this.getZrCd() ==  castOther.getZrCd())
				||(this.getZrCd()!=null && castOther.getZrCd() !=null 
					&& castOther.getZrCd() !=null 
					&& this.getZrCd().equals(castOther.getZrCd())))
			&& ((this.getKinCd() ==  castOther.getKinCd())
				||(this.getKinCd()!=null && castOther.getKinCd() !=null 
					&& castOther.getKinCd() !=null 
					&& this.getKinCd().equals(castOther.getKinCd())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getZrCd() == null ? 0 : this.getZrCd().hashCode());
		result = 37 * result
				+ (getKinCd() == null ? 0 : this.getKinCd().hashCode());
		return result;
	}

}